Example #1
0
    private void Awake()
    {
        controlscript = GameObject.FindObjectOfType <ControlForPlayer>();

        shopmanagerscript = GameObject.FindObjectOfType <ShopManager>();
        Instance          = this;
        multiplier_script = GameObject.FindObjectOfType <Multiplier>();
        scorescript       = GameObject.FindObjectOfType <Score>();
    }
Example #2
0
    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>();
 }
Example #4
0
 //For initial scores
 void Awake()
 {
     Instance     = this;
     healthscript = GameObject.FindObjectOfType <HealthAndLock>();
 }