コード例 #1
0
ファイル: Zombie.cs プロジェクト: catunlock/Ourcraft
    public override void Start()
    {
        EntityManager.Instance.RegisterEntity(this);

        cSteeringWander  = GetComponent <UnitySteer.Behaviors.SteerForWander>();
        cSteeringPursuit = GetComponent <UnitySteer.Behaviors.SteerForPursuit>();
        animator         = GetComponent <Animator>();
        biped            = GetComponent <UnitySteer.Behaviors.Biped>();
        rb    = GetComponent <Rigidbody>();
        audio = GetComponent <AudioSource>();

        target  = null;
        targets = new HashSet <BaseGameEntity>();
        cSteeringWander.enabled  = true;
        cSteeringPursuit.enabled = false;
        animator.SetFloat("MoveSpeed", 0);
    }
コード例 #2
0
 // Use this for initialization
 private void Awake()
 {
     pursuitUS = GetComponent<SteerForPursuit> ();
 }
コード例 #3
0
 private void Awake()
 {
     currTime = 0f;
     pursuitUS = GetComponent<SteerForPursuit> ();
 }
コード例 #4
0
 // Use this for initialization
 private void Awake()
 {
     pursuitUS = GetComponent <SteerForPursuit> ();
 }
コード例 #5
0
 private void Awake()
 {
     currTime  = 0f;
     pursuitUS = GetComponent <SteerForPursuit> ();
 }