コード例 #1
0
    void Start()
    {
        this.gameActivated = false;
        this.currentPlayer = "None";

        //PREINITIALIZE VARIABLES HERE
        this.beginDecay = false;

        this.rotateBar = this.displayPanel.transform.GetChild(3).gameObject;
        this.chargeBar = this.displayPanel.transform.GetChild(5).gameObject;

        this.shieldBarManager = UIScripts.GetComponent <ShieldBarManager>();

        this.displayPanel.SetActive(false);
    }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     shieldBarManager = this.gameObject.GetComponent <ShieldBarManager>();
     hullBarManager   = this.gameObject.GetComponent <HullBarManager>();
 }