Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     instance = this;
     if (weapon == null)
     {
         Debug.Log("nie mam broni");
         setSkryptBroni();
     }
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     manager     = GameObject.Find("GameManager").GetComponent <CS_Gamemanager>();
     gameManager = FindObjectOfType <CS_Gamemanager>();
     Movement    = GameObject.FindGameObjectWithTag("Player").GetComponent <CS_Player_Movment>();
     movement    = GameObject.FindGameObjectWithTag("Player").GetComponent <movment>();
     CS_Notify.Register(this, "BiggerCoins");
     CS_Notify.Register(this, "ShotCoins");
 }
Exemple #3
0
 void Start()
 {
     Movement           = GameObject.FindGameObjectWithTag("Player").GetComponent <CS_Player_Movment>();
     movement           = GameObject.FindGameObjectWithTag("Player").GetComponent <movment>();
     checkIfHit         = GameObject.FindGameObjectWithTag("Player").GetComponent <CS_Player>();
     boostEffect        = GameObject.Find("Speed Particle Effect");
     stage              = this.gameObject.GetComponent <CS_Stages>();
     pickUpParticleText = GameObject.Find("Text_ParticleMaterialMaker").GetComponentInChildren <Text>();
     lossParticleText   = GameObject.Find("Text_ParticleMaterialMakerLoss").GetComponentInChildren <Text>();
     scoreCoins         = GameObject.Find("GameManager").GetComponent <CS_Gamemanager>();
     dC             = GameObject.Find("DeathCounter").GetComponent <CS_DeathCounter>();
     Cursor.visible = false;
     boostEffect.gameObject.SetActive(false);
     foreach (Transform child in GameObject.FindGameObjectWithTag("TrueCanvas").transform)
     {
         if (child.tag == "Score")
         {
             score.Add(child.GetComponent <Text>());
         }
     }
 }