コード例 #1
0
ファイル: Cat2.cs プロジェクト: aekly268/LilyFindCheese
    // 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;
    }
コード例 #2
0
ファイル: Cat.cs プロジェクト: aekly268/LilyFindCheese
    // 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;
    }