示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        //State
        state    = State.WaitingMoveLeft;
        camState = CamState.Front;

        //VectorsAndRotations
        CamOriginRot   = Quaternion.Euler(12f, 0f, 0f);
        DropItemCamRot = Quaternion.Euler(12f, 0f, 0f);
        LeftCameraRot  = Quaternion.Euler(12f, 90f, 0f);
        RightCameraRot = Quaternion.Euler(12f, -90f, 0f);

        //CameraPosition
        cam.transform.position = CamOriginVec;
        cam.transform.rotation = CamOriginRot;

        prizesController = GetComponent <PrizesController>();

        MoveUIsActive();
    }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     gameManager      = GameObject.Find("GameManager").GetComponent <GameManager>();
     prizesController = GameObject.Find("GameManager").GetComponent <PrizesController>();
 }