コード例 #1
0
 public TurtleRaycast(Transform trans, MonsterAby tby)
 {
     lookAngle     = 160f;
     lookAccurate  = 40;
     subAngle      = (lookAngle / 2) / lookAccurate;
     transformSelf = trans;
     tAby          = tby;
 }
コード例 #2
0
 private void Awake()
 {
     agent = GetComponent <NavMeshAgent>();
     trans = GetComponent <Transform>();
     ani   = GetComponent <Animator>();
     aby   = new TurtleAby(name, hp, speed, attackNum, defendNum, ani, trans, agent);
     tRay  = new TurtleRaycast(transform, aby);
 }