// Use this for initialization void Start() { CatRenderer = CatHead.GetComponent <Renderer>(); catSE = GetComponent <AudioSource>(); MouseObj = GameObject.Find("Rat"); mouse = MouseObj.GetComponent <MouseController>(); MouseObj.GetComponent <MouseController>(); CatAni = CatObject.GetComponent <Animator>(); BoxColl = gameObject.GetComponent <BoxCollider>(); WatchLighting.enabled = false; }
// Use this for initialization void Start() { CatRenderer = CatHead.GetComponent <Renderer>(); MouseObj = GameObject.Find("Rat"); mouse = MouseObj.GetComponent <MouseController>(); CatAni = CatObject.GetComponent <Animator>(); BoxColl = gameObject.GetComponent <BoxCollider> (); WatchLighting.enabled = false; catSE = GetComponent <AudioSource>(); mouse = MouseObj.GetComponent <MouseController>(); // CatRenderer.material.mainTexture = Resources.Load("CAT1_BODY 02") as Texture; }