Exemple #1
0
 // Use this for initialization
 void Awake()
 {
     drag   = GetComponent <DragObjects> ();
     player = GetComponent <AnimController> ();
     OffLeftHand();
     OffRightHand();
 }
 // Use this for initialization
 void Start()
 {
     dragObjects = GetComponent <DragObjects>();
     tankControl = GetComponent <TankControl>();
     pointRot    = GetComponent <PointRotate>();
     pointState  = GameObject.FindGameObjectWithTag("Weapon").GetComponent <PointState>();
     pointState.transform.Rotate(0, 0, 0);
 }
Exemple #3
0
    // Use this for initialization
    void Awake()
    {
        controller = (FirstPersonController)FindObjectOfType(typeof(FirstPersonController));
        drag       = (DragObjects)FindObjectOfType(typeof(DragObjects));
        swithcer   = (StencilSwithcer)FindObjectOfType(typeof(StencilSwithcer));
        handSmth   = (HandSmouth)FindObjectOfType(typeof(HandSmouth));
        anims      = (AnimController)FindObjectOfType(typeof(AnimController));
        //hand = (HandController)FindObjectOfType (typeof(HandController));
        Cursor.lockState = playeMode;
        Cursor.visible   = (CursorLockMode.Locked != playeMode);


        GamePanel.color  = pressedColor;
        LevelPanel.color = normalColor;
        GamePanelobj.SetActive(true);
        LevelPanelobj.SetActive(false);
    }
	//private CameraSwitch jsScript;  
	void Start () {
		//init score
		if(s_currentScore == -1) {
			s_currentScore = 0;
			s_remainScore = 501;
		}

		isCameraMode = gameObject.name.Equals ("Main Camera") ? true : false;
		boardPostion = GameObject.Find ("ObjectBoard").transform.position;
		oldPosition = transform.position;
		if (isCameraMode) {
			objCame = GameObject.Find ("Main Camera");
			oldOrthoSize = camera.orthographicSize;
			oldRotation = transform.localEulerAngles;
			currentLookAt = new Vector3(oldPosition.x, oldPosition.y, targetReview.z);
			splines[0] = spline;
			splines[1] = GameObject.Find("SplineCamera1").GetComponent<BezierSpline>();
		} else {
			oldScale = transform.localScale;
		}
		if (dragObject == null) {
			dragObject = GameObject.Find("ObjectBoard").GetComponent<DragObjects>();
		}
	}
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     dragScript = this.gameObject.GetComponent <DragObjects> ();
     manager    = this.gameObject.GetComponent <Manager> ();
     SpawnMango();
 }
Exemple #6
0
 void Start()
 {
     drag = GameObject.FindGameObjectWithTag("Player").GetComponent <DragObjects>();
 }
 void Awake()
 {
     dragObjectScript = gameObject.GetComponent<DragObjects> ();
     rend = GetComponent<Renderer> ();
 }
 void Awake()
 {
     dragObjectScript = gameObject.GetComponent <DragObjects> ();
     rend             = GetComponent <Renderer> ();
 }
	void Start () {
		objDrag = GameObject.Find ("ObjectBoard").GetComponent<DragObjects>();	
	}