Example #1
0
 void Start()
 {
     rbody         = this.gameObject.GetComponent <Rigidbody>();
     planning      = PersonalPlanning.instance;
     originalSpeed = runSpeed;
     weight        = planning.GetWeightP1();
     oldWeight     = weight;
     runSpeed     -= weight * runSpeed;
 }
Example #2
0
 private void Awake()
 {
     DontDestroyOnLoad(this.gameObject);
     if (instance != null)
     {
         Debug.LogWarning("more than one instance of planning found!");
         return;
     }
     instance = this;
 }
Example #3
0
    // Use this for initialization
    void Start()
    {
        planning = PersonalPlanning.instance;
        planning.onTaskChangedCallback1 += UpdateUI1;
        planning.onTaskChangedCallback2 += UpdateUI2;
        planning.onTaskChangedCallback3 += UpdateUI3;
        planning.onTaskChangedCallback4 += UpdateUI4;

        spotsP1 = player1.GetComponentsInChildren <TaskSpot>();
        spotsP2 = player2.GetComponentsInChildren <TaskSpot>();
        spotsP3 = player3.GetComponentsInChildren <TaskSpot>();
        spotsP4 = player4.GetComponentsInChildren <TaskSpot>();
    }
Example #4
0
 //public GameObject taskObj5;
 // Use this for initialization
 void Start()
 {
     planning = PersonalPlanning.instance;
     player   = GameObject.FindGameObjectWithTag("Player4");
     spotsP4  = player4.GetComponentsInChildren <TaskSpot>();
 }