void Start() { rb = gameObject.GetComponent <Rigidbody>(); anim = transform.GetChild(0).GetComponent <Animator>(); resorcesPlacement = GameObject.Find("ResourcePlacer").GetComponent <ResourcesPlacement>(); playerConditions = GetComponent <PlayerConditions>(); }
void Start() { playerConditions = getConditions.GetComponent <PlayerConditions>(); player = GameObject.Find("Player"); resourcesPlacement = GameObject.Find("ResourcePlacer").GetComponent <ResourcesPlacement>(); objManager = GameObject.Find("Rocket").GetComponent <ObjectivesManager>(); explosion = GameObject.Find("Explosion").GetComponent <ParticleSystem>(); fire = GameObject.Find("Fire").GetComponent <ParticleSystem>(); }
void Start() { playerInteractions = GetComponent <PlayerInteractions>(); resourcesPlacement = GameObject.Find("ResourcePlacer").GetComponent <ResourcesPlacement>(); gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); }