public override void OnLookAway(UnconventionalWeapon uw) { if (head && normalHeadMaterial) { head.renderer.sharedMaterial = normalHeadMaterial; } if ((eyes.Length > 1) && normalEyeMaterial) { foreach (GameObject eye in eyes) { eye.renderer.sharedMaterial = normalEyeMaterial; } } }
public override void OnStareAt(UnconventionalWeapon uw) { transform.rotation = Quaternion.LookRotation(Vector3.RotateTowards( transform.forward, new Vector3(uw.transform.position.x - transform.position.x, 0, uw.transform.position.z - transform.position.z), bodyTurnSpeed * Time.deltaTime, 0.0f)); if (head) { head.transform.rotation = Quaternion.LookRotation(Vector3.RotateTowards( head.transform.forward, uw.transform.position - head.transform.position, headTurnSpeed * Time.deltaTime, 0.0f)); } }
public virtual void OnLookAt(UnconventionalWeapon uw) { }
public virtual void OnStareAt(UnconventionalWeapon uw) { }