コード例 #1
0
    void Start()
    {
        thisRend     = GetComponent <MeshRenderer>();
        player       = GameObject.Find("Player");
        playerscript = player.GetComponent <PlayerVisible>();

        //thisRend.material.color = new Color(thisRend.material.color.r, thisRend.material.color.g, thisRend.material.color.b, 0.2f);
    }
コード例 #2
0
    void Start()
    {
        player       = GameObject.Find("Player");
        playerscript = player.GetComponent <PlayerVisible>();

        target = GameObject.FindGameObjectWithTag("Player").transform;
        agent  = GetComponent <NavMeshAgent>();
        timer  = wanderTimer;
        //isWandering = true;
    }
コード例 #3
0
 void Awake()
 {
     me  = this;
     pcc = this.GetComponent <PersonClothesController> ();
 }