mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-24 18:54:37 -05:00
-Meta data for moved king scripts -Added quaternions for spawning players facing the correct directions
20 lines
423 B
C#
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);
|
|
}
|
|
}
|