import UnityEngine class EnemyPoliceGuy (MonoBehaviour): attackTurnTime = 0.7 rotateSpeed = 120.0 attackDistance = 17.0 extraRunTime = 2.0 damage = 1 attackSpeed = 5.0 attackRotateSpeed = 20.0 idleTime = 1.6 punchPosition = Vector3 (0.4, 0, 0.7) punchRadius = 1.1 // sounds public idleSound as AudioClip // played during "idle" state. public attackSound as AudioClip // played during the seek and attack modes. attackAngle = 10.0 lastPunchTime = 0.0 def Start(): Debug.Log("On Start") characterController = GetComponent(CharacterController) animation.wrapMode = WrapMode.Loop animation.Play("idle") animation["threaten"].wrapMode = WrapMode.Once animation["turnjump"].wrapMode = WrapMode.Once animation["gothit"].wrapMode = WrapMode.Once animation["gothit"].layer = 1 audio.clip = idleSound def Update (): pass