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() { _boxCollider2D = GetComponent <BoxCollider2D>(); _conditions = new PlayerConditions(); _conditions.Reset(); _levelManager = GameObject.FindGameObjectWithTag("manager").GetComponent <LevelManager>(); textOverHead.text = "Gravidade \n" + gravity.ToString(); }
void Start() { Paratoria = GameObject.Find("Wraith(Clone)").transform.GetChild(0).GetComponent <Paratoria>(); Shadowlites = GetComponentInParent <Shadowlites>(); player = GameObject.Find("Player").GetComponent <PlayerConditions>(); }