Esempio n. 1
0
 public override void OnStart()
 {
     base.OnStart();
     raw_rotation = transform.rotation;
     transform.LookAt(((GameObject)player.GetValue()).transform);
     lookat_rotation    = transform.rotation;
     transform.rotation = raw_rotation;
     rotate_angle       = Quaternion.Angle(raw_rotation, lookat_rotation);
     total_tm           = rotate_angle / (float)rotationSpeed.GetValue();
     lerp_tm            = 0;
 }
Esempio n. 2
0
 public override void OnStart()
 {
     m_startTime = Time.time;
     m_sleepTime = (float)sleepTime.GetValue();
 }