示例#1
0
    void Start()
    {
        if (!GetComponent <PhotonView>().isMine)
        {
            this.enabled = false;
        }

        orientationsPlayer       = new Queue <Quaternion>();
        scenariosPlayer          = new Queue <int[]>();
        orientationsPlayerMatrix = new Queue <Quaternion> [2, 2];
        for (int i = 0; i < 2; i++)
        {
            for (int j = 0; j < 2; j++)
            {
                orientationsPlayerMatrix[i, j] = new Queue <Quaternion>();
            }
        }


        masterController   = gameObject.GetComponent <MasterController>();
        targetedController = gameObject.GetComponent <TargetedController>();
        persistanceManager = gameObject.GetComponent <PersistanceManager>();
        trackerMannager    = gameObject.GetComponent <TrackerMannager>();
        surveyMannager     = gameObject.GetComponent <SurveyMannager>();
        hand                  = handObject.gameObject.GetComponent <IGenericHand>();
        propMannager          = gameObject.GetComponent <PropMannager>();
        personalNotifications = gameObject.GetComponent <PersonalNotifications>();
    }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     if (!GetComponent <PhotonView>().isMine)
     {
         this.enabled = false;
     }
     hand         = gameObject.GetComponent <IGenericHand>();
     allowToGrab  = false;
     objectInHand = false;
     //TODO delete
     allowToGrab = true;
     //trackerMannager.setTrackers();
 }