예제 #1
0
파일: RoomManager.cs 프로젝트: Aare-/GJ2020
    // 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));
    }
예제 #2
0
    // 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();
    }
예제 #3
0
 protected void Start()
 {
     _HoldManager = FindObjectOfType <PositionHoldManager>();
 }