public void SetRocketToShoot(int rocket_index, GameObject player = null)
 {
     RI              = RocketInventory.Instance;
     player_target   = player;
     explosion_index = rocket_index;
     GetComponent <IShooting>().Fire += FireRocket;
 }
Exemple #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;
 }
Exemple #3
0
 void InitialSetup()
 {
     RI   = RocketInventory.Instance;
     rend = GetComponent <Renderer>();
 }
Exemple #4
0
 void Awake()
 {
     Instance = this;
 }
Exemple #5
0
 void Start()
 {
     RI   = RocketInventory.Instance;
     stat = Stats.Instance;
 }