コード例 #1
0
 // Use this for initialization
 void Start()
 {
     time          = 0.0f;
     hcs           = GetComponent <HudControllerScript> ();
     manWithButton = transform.Find("Turret/ManWithButton");
     canon         = transform.Find("Turret/CanonParent/Canon");
     bulletSpawn   = canon.Find("BulletSpawn");
 }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        selectedMagazine = 0;
        for (int i = 0; i < magazines.Length; i++)
        {
            magazines [i].setDefaults();
        }

        hcs = GetComponent <HudControllerScript> ();
    }
コード例 #3
0
 // Use this for initialization
 void Awake()
 {
     hcs       = GetComponent <HudControllerScript> ();
     maxHealth = health;
 }