コード例 #1
0
    // Use this for initialization

    void Start()
    {
        health    = 1;
        attacking = false;
        anim      = gameObject.GetComponent <Animator>();
        fallSound = GameObject.Find("OniFallSound").GetComponent <AudioSource>();
        c         = SideChar.Get();
    }
コード例 #2
0
 void Start()
 {
     anim        = GetComponent <Animator>();
     forward     = Camera.main.transform.forward;
     forward.y   = 0;
     forward     = Vector3.Normalize(forward);
     right       = Quaternion.Euler(new Vector3(0, 90, 0)) * forward;
     s_RigidBody = GetComponent <Rigidbody>();
     c           = SideChar.Get();
     grounded    = true;
     dead        = false;
 }
コード例 #3
0
 void Start()
 {
     anim        = GetComponent <Animator>();
     forward     = Camera.main.transform.forward;
     forward.y   = 0;
     forward     = Vector3.Normalize(forward);
     right       = Quaternion.Euler(new Vector3(0, 90, 0)) * forward;
     s_RigidBody = GetComponent <Rigidbody>();
     c           = SideChar.Get();
     grounded    = true;
     jumpSound   = GameObject.Find("JumpSound").GetComponent <AudioSource>();
     walkSound   = GameObject.Find("WalkSound").GetComponent <AudioSource>();
     //rollSound = GameObject.Find("RollSound").GetComponent<AudioSource>();
     revive();
     dead = false;
 }
コード例 #4
0
 void Start()
 {
     c         = SideChar.Get();
     m_izanagi = Movement.Get().gameObject;
     m_izanami = Nami.Get();
 }