コード例 #1
0
 private void Awake()
 {
     self      = this;
     visuals   = GetComponent <gamestateVisuals>();
     camShaker = Camera.main.GetComponent <cameraShake>();
     gameTimer = self.gameTime;
 }
コード例 #2
0
    void Awake()
    {
        self = this;
        msgleft.gameObject.SetActive(true);
        msgright.gameObject.SetActive(true);
        hand             = GameObject.FindGameObjectWithTag("Arena").transform.Find("hand1").gameObject;
        smallHand        = GameObject.FindGameObjectWithTag("Arena").transform.Find("hand2").gameObject;
        handBaseScale    = hand.transform.localScale.x;
        smallHandBaseRot = smallHand.transform.localEulerAngles.z;

        baseDarkness = areaLight.intensity;

        clockLight = GameObject.Find("Lighting/Clock Light").GetComponent <Light>();

        doorRed  = GameObject.FindGameObjectWithTag("RedDoor");
        doorBlue = GameObject.FindGameObjectWithTag("BlueDoor");

        steamLeft  = gearLeft.GetComponentInChildren <steamController>();
        steamRight = gearRight.GetComponentInChildren <steamController>();
        displayScore();
    }