コード例 #1
0
 void Start()
 {
     uim = uiMObj.GetComponent<UIManager> ();
     bc = bmObj.GetComponent<BuildControls> ();
     dc = dmObj.GetComponent<DestroyControls> ();
     changeMode (mode);
 }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        once = false;
        dc = dcObject.GetComponent<DestroyControls> ();
        ca = cameraAniObject.GetComponent<CameraAnimation> ();
        ch = chatHandlerObject.GetComponent<ChatHandler> ();
        vui = volumeUiObject.GetComponent<VolumeUI> ();

        introString = introLinesFile.text;
        char[] delimitingChars = {'\n'};
        introLines = introString.Split (delimitingChars);
    }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     dc = dcObject.GetComponent<DestroyControls> ();
     oh = objectivesObj.GetComponent<ObjectiveHandler> ();
     whichTarget = 0;
     targetCount = viewObject.transform.childCount;
     startAni = false;
     finished = false;
     targetLocations = new Vector3[viewObject.transform.childCount + 1];
     targetRotations = new Vector3[viewObject.transform.childCount + 1];
     int index = 0;
     foreach (Transform child in viewObject.transform) {
         targetLocations[index] = child.position;
         targetRotations[index] = child.localRotation.eulerAngles;
         index++;
     }
     if (!canPlayAnimation) {
         finished = true;
     }
 }
コード例 #4
0
 void Start()
 {
     peh = primaryEventHandlerObj.GetComponent<PrimaryEventHandler> ();
     dc = destroyController.GetComponent<DestroyControls> ();
     statsTextPanel = statsTextObject.transform.parent.gameObject;
     statsTextImage = statsTextPanel.transform.GetChild (0).gameObject;
     objectsOfInterest = new string[2]{"Destructible", "NPC"};
     prevMouseDown = true;
 }
コード例 #5
0
 void Start()
 {
     atAniFinish = false;
     pc = player.GetComponent<PlayerControls> ();
     dc = destroyControlsObj.GetComponent<DestroyControls> ();
     cameraAni = startAnimationObject.GetComponent<CameraAnimation> ();
     playedStart = false;
     doOnce = false;
     isTempLook = false;
     forward = this.transform.forward;
     updateOffset ();
     allowedObjs = new string[2]{"Player", "Ceiling"};
     length = Mathf.Sqrt (height * height + distance * distance) - player.transform.localScale.x / 2.0f;
     targetRotation = Vector3.zero;
 }
コード例 #6
0
 void Start()
 {
     peh = pehObject.GetComponent<PrimaryEventHandler> ();
     sbb = sideButtonController.GetComponent<SidebuttonBehaviour> ();
     dc = dcObject.GetComponent<DestroyControls> ();
 }