Beispiel #1
0
    public void setTarget(int alpacaIndex)
    {
        //This should take an index number to SpawnManager
        currentAlpacaIndex = alpacaIndex;
        GameObject target = GameObject.Find(SpawnManager.alpacaIndex[alpacaIndex]);

        targetAlpacaMesh = target.transform.Find("AlpacaMesh").gameObject;

        alpvar = target.GetComponent <AlpacaVariables>();
    }
Beispiel #2
0
 void Start()
 {
     rootvars = transform.root.GetComponent <AlpacaVariables>();
 }