mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-05-15 23:59:43 -05:00
>Hail is spawned at a rondom spot in an area >Hail creates a Shadow directly underneath it >Hail falls, and shadow scales to the correct size >Abilites moved into their own folder >King Implementation Scene Created and King Movement Created
20 lines
422 B
C#
20 lines
422 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<PlayerMovement>().AddImpact(DirWind, 1);
|
|
}
|
|
}
|