コード例 #1
0
ファイル: bulletStore.cs プロジェクト: ancal258/Dragon_Copy
    // 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");
    }
コード例 #2
0
 private void Awake()
 {
     if (singleton == null)
     {
         singleton = this;
         return;
     }
     Destroy(this);
 }
コード例 #3
0
ファイル: bullet.cs プロジェクト: hatsuna/Wayfarer
 void Start()
 {
     manager = FindObjectOfType <bulletManager>();
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     gun = GameObject.FindWithTag("Weapon").GetComponent <bulletManager>();
 }