Esempio n. 1
0
    public PlayerInventory_JG playerInventory; //Reference to the players inventory

    #endregion Fields

    #region Methods

    void Awake()
    {
        player = player.gameObject;
        m_TreeSeed = m_TreeSeed.gameObject;
        m_VineSeed = m_VineSeed.gameObject;
        playerInventory = player.GetComponent<PlayerInventory_JG>();
    }
Esempio n. 2
0
 // David - gets the intial position and loads the models/gameobjects at start that was set in inspecter
 void Start()
 {
     targetPos = transform.position;
     playerInventory = player.GetComponent<PlayerInventory_JG>();
     player = player.gameObject;
     switchBaby = switchBaby.gameObject;
     switchTeen = switchTeen.gameObject;
     switchOld = switchOld.gameObject;
     c_switch = player.GetComponent<CharacterSwitch>();
 }
Esempio n. 3
0
    //  private TreeOn PlantEnable;
    //    public bool disableTree;
    //  public bool disableVine;
    // Use this for initialization
    void Start()
    {
        player = player.gameObject;
        m_Vine = m_Vine.gameObject;
        m_Tree = m_Tree.gameObject;
        m_TreeSeed = m_TreeSeed.gameObject;
        m_VineSeed = m_VineSeed.gameObject;
        playerInventory = player.GetComponent<PlayerInventory_JG>();
        //w_meter = GetComponent<WaterManager_JG>();

        //    PlantEnable = GetComponent<TreeOn>();
         //   PlantEnable = GetComponent<TreeOn>();
    }