// Start is called before the first frame update void Start() { _HoldManager = GetComponent <PositionHoldManager>(); _Body = GetComponent <Rigidbody>(); _Body.transform.rotation = Quaternion.Euler(0, _InitialRotation, 0); TinyMessengerHub .Instance .Publish(Msg.RotationProgress.Get(0.0f)); }
// Start is called before the first frame update void Start() { _RoomManager = FindObjectOfType <RoomManager>(); _PHolderManager = FindObjectOfType <PositionHoldManager>(); _Body = GetComponent <Rigidbody>(); _Collider = GetComponent <Collider>(); _PHolderManager.RegisterStaticObject(this); if (Path != null) { transform.position = Path.Start.transform.position; } HidePath(); }
protected void Start() { _HoldManager = FindObjectOfType <PositionHoldManager>(); }