TheKingsRace/Assets/Scripts/KingScripts/Wind.cs
Vincent Wheat 7348d3644d MetaData + Spawn Quaternions
-Meta data for moved king scripts
-Added quaternions for spawning players facing the correct directions
2021-12-10 21:58:55 -06:00

20 lines
423 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Wind : MonoBehaviour
{
public Vector3 DirWind;
// Start is called before the first frame update
void Start()
{
DirWind = Vector3.forward;
}
// Update is called once per frame
void OnTriggerStay(Collider other)
{
other.GetComponent<dPlayerMovement>().AddImpact(DirWind, 1);
}
}