private void Awake() { controlscript = GameObject.FindObjectOfType <ControlForPlayer>(); shopmanagerscript = GameObject.FindObjectOfType <ShopManager>(); Instance = this; multiplier_script = GameObject.FindObjectOfType <Multiplier>(); scorescript = GameObject.FindObjectOfType <Score>(); }
void Awake() { skel = GetComponent <SkeletonAnimation>(); AudioManager_Script = GameObject.FindObjectOfType <Audio>(); multiplier_Script = GameObject.FindObjectOfType <Multiplier>(); Score_Script = GameObject.FindObjectOfType <Score>(); HealthbarScript = GameObject.FindObjectOfType <HealthAndLock>(); Speed = multiplier_Script.multiplier_value; }
// Use this for initialization void Awake() { shopmanagerscript = GameObject.FindObjectOfType <ShopManager>(); Instance = this; AudioManager_Script = GameObject.FindObjectOfType <Audio>(); multiplier_Script = GameObject.FindObjectOfType <Multiplier>(); Score_Script = GameObject.FindObjectOfType <Score>(); HealthbarScript = GameObject.FindObjectOfType <HealthAndLock>(); playerSpawnPopUpscript = GameObject.FindGameObjectWithTag("Player_Spine").GetComponent <SpawnPopUp>(); }
//For initial scores void Awake() { Instance = this; healthscript = GameObject.FindObjectOfType <HealthAndLock>(); }