Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        um = GameObject.Find("TextUI").GetComponent <uiManager>();
        bm = GameObject.Find("bulletUI").GetComponent <bulletManager>();

        sr        = GetComponent <SpriteRenderer>();
        bulletbtn = GameObject.Find("bulletUp");
    }
Exemplo n.º 2
0
 private void Awake()
 {
     if (singleton == null)
     {
         singleton = this;
         return;
     }
     Destroy(this);
 }
Exemplo n.º 3
0
 void Start()
 {
     manager = FindObjectOfType <bulletManager>();
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     gun = GameObject.FindWithTag("Weapon").GetComponent <bulletManager>();
 }