Exemple #1
0
    protected override void action()
    {
        PlControl pl = GameObject.FindObjectOfType <PlControl>();

        pl.addSpeed(Vector3.up * 10f);
        pl.rb.useGravity  = false;
        pl.rb.constraints = RigidbodyConstraints.None;
    }
    protected override void action()
    {
        PlControl pl = GameObject.FindObjectOfType <PlControl>();

        if (pl.wasOthSide)
        {
            pl.startNextDay(); pl.wasOthSide = false; door.interact();
        }
    }
Exemple #3
0
 void Awake()
 {
     if (control == null)
     {
         DontDestroyOnLoad(gameObject);
         control = this;
     }
     else if (control != this)
     {
         Destroy(gameObject);
     }
     init();
 }
    protected override void action()
    {
        PlControl pl = GameObject.FindObjectOfType <PlControl>();

        pl.addSpeed(dir);
    }
Exemple #5
0
    // Start is called before the first frame update
    void Awake()
    {
        playerInput = new PlControl();

        playerInput.Gameplay.Grow.performed += ctx => Grow();
    }
Exemple #6
0
 public GameplayActions(PlControl wrapper)
 {
     m_Wrapper = wrapper;
 }