public void DoAction() { if (dm.IsPlaying()) { return; } foreach (var ecastm in im.overlapEcastms) { if (!ecastm.active) { continue; } if (ac.model.transform.CheckAngleSelf(ecastm.am.transform, 30.0f)) { //transform.position = ecastm.transform.position + ecastm.am.transform.TransformVector(ecastm.offset); ac.model.transform.forward -= ecastm.am.transform.forward; //ac.model.transform.LookAt(ecastm.am.transform, Vector3.up); ecastm.active = false; dm.Play(ecastm.eventType, this, ecastm.am); } } }