コード例 #1
0
	// Use this for initialization
	void Start () {
        UnityChan = GameObject.FindGameObjectWithTag("Normal") ;
        CandyRockStar = GameObject.FindGameObjectWithTag("Candy");
		LockOn = GetComponent<LockON>();
		CandyRockStar.SetActive(false);
        anim = GetComponent<Animator>();
        UnityAvatar = Resources.Load("unitychan", typeof (Avatar)) as Avatar;
        CandyAvatar = Resources.Load("CandyRockStar", typeof(Avatar)) as Avatar;
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     anim        = GetComponent <Animator>();
     body        = GetComponent <Rigidbody> ();
     m_Character = GetComponent <ThirdPersonCharacter>();
     lockOn      = GetComponent <LockON>();
     Lazers      = GameObject.FindGameObjectsWithTag("Lazer");
     foreach (GameObject lz in Lazers)
     {
         lz.SetActive(false);
     }
     PlayerAvatar = anim.GetComponent <Avatar> ();
 }