Ejemplo n.º 1
0
 public void SetRocketToShoot(int rocket_index, GameObject player = null)
 {
     RI              = RocketInventory.Instance;
     player_target   = player;
     explosion_index = rocket_index;
     GetComponent <IShooting>().Fire += FireRocket;
 }
Ejemplo n.º 2
0
 public void SetPlayerFiring()
 {
     RI = RocketInventory.Instance;
     RI.PooledRockets(true, rocket_index, RI.rocket_pools[0].pooled_rockets, RI.explosion_pools[0].pooled_explosions);
     rocket_label = RocketsUI.GetComponent <TextMeshProUGUI>();
     rocket_image = RocketsUI.transform.GetChild(0).GetComponent <Image>();
     rocket_index = 0;
 }
Ejemplo n.º 3
0
 void InitialSetup()
 {
     RI   = RocketInventory.Instance;
     rend = GetComponent <Renderer>();
 }
Ejemplo n.º 4
0
 void Awake()
 {
     Instance = this;
 }
Ejemplo n.º 5
0
 void Start()
 {
     RI   = RocketInventory.Instance;
     stat = Stats.Instance;
 }