dronkowitz

Fan.cs

Feb 10th, 2021 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Fan : MonoBehaviour
  6. {
  7.     void OnTriggerStay(Collider other)
  8.     {
  9.         UltimatePlayerMovement player = other.GetComponent <UltimatePlayerMovement>();
  10.         if (player)
  11.         {
  12.  
  13.             player.Launch(Vector3.up, 5);
  14.  
  15.  
  16.  
  17.  
  18.         }
  19.     }
  20. }
  21.  
Add Comment
Please, Sign In to add comment