示例#1
0
 // Use this for initialization
 void Start()
 {
     rg = GetComponent <Rigidbody> ();
     SoundManager.instance.PlayerAttackSound();
     player = GameObject.Find("Muki").GetComponent <PlayerCtrl2> ();
     dir    = player.attackDir;
 }
示例#2
0
文件: FollowCam.cs 项目: LDongUk/Muki
    // Use this for initialization
    void Start()
    {
        tr        = GetComponent <Transform> ();
        playerctr = GameObject.Find("Muki").GetComponent <PlayerCtrl2> ();

        pat1R = GameObject.Find("Patrols1_R").GetComponent <PatrolPos> ();
        pat2R = GameObject.Find("Patrols2_R").GetComponent <PatrolPos> ();
        pat2L = GameObject.Find("Patrols2_L").GetComponent <PatrolPos> ();
        pat3R = GameObject.Find("Patrols3_R").GetComponent <PatrolPos> ();
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     plct = GameObject.Find("Muki").GetComponent <PlayerCtrl2> ();
 }