Ejemplo n.º 1
0
        protected override void Initialize(ControllerBase controller)
        {
            _controller = controller as TargetedController<Family>;

            if (_controller == null)
                throw new ArgumentException("Controller was not a TargetedController<Family>");
        }
Ejemplo n.º 2
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>();
    }
Ejemplo n.º 3
0
 void Start()
 {
     masterController      = gameObject.GetComponent <MasterController>();
     targetedController    = gameObject.GetComponent <TargetedController>();
     persistanceManager    = gameObject.GetComponent <PersistanceManager>();
     trackerMannager       = gameObject.GetComponent <TrackerMannager>();
     notificationsMannager = gameObject.GetComponent <NotificationsMannager>();
     surveyMannager        = gameObject.GetComponent <SurveyMannager>();
     setNew();
 }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     if (targeted == null)
     {
         targeted = gameObject.transform.parent.gameObject.GetComponent <TargetedController>();
     }
     if (!GetComponent <PhotonView>().isMine)
     {
         tracker.SetActive(false);
     }
     initialRotation = transform.rotation;
 }