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