コード例 #1
0
ファイル: PlayerShoot.cs プロジェクト: t3hyje00/DescentRemake
    //private UnityEngine.UI.Image bulletOvImage;
    //private UnityEngine.UI.Image missileOvImage;
    //private UnityEngine.UI.Image itemOvImage;

    // Use this for initialization
    void Start()
    {
        weapons = this.GetComponent <FiringWeapons>();
        //bulletOvImage = GameObject.Find("BulletOverlay").GetComponent<UnityEngine.UI.Image>();
        //missileOvImage = GameObject.Find("MissileOverlay").GetComponent<UnityEngine.UI.Image>();
        //itemOvImage = GameObject.Find("ItemOverlay").GetComponent<UnityEngine.UI.Image>();
    }
コード例 #2
0
ファイル: TurretEnemy.cs プロジェクト: t3hyje00/DescentRemake
 // Use this for initialization
 void Start()
 {
     players = GameObject.FindGameObjectsWithTag("Player");
     weapons = this.turretWeapon.GetComponent <FiringWeapons>();
 }
コード例 #3
0
	// Use this for initialization
	void Start () {
        players = GameObject.FindGameObjectsWithTag("Player");
        weapons = this.turretWeapon.GetComponent<FiringWeapons>();
	}