public TurtleRaycast(Transform trans, MonsterAby tby) { lookAngle = 160f; lookAccurate = 40; subAngle = (lookAngle / 2) / lookAccurate; transformSelf = trans; tAby = tby; }
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); }