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(); } }
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); }
// Start is called before the first frame update void Awake() { playerInput = new PlControl(); playerInput.Gameplay.Grow.performed += ctx => Grow(); }
public GameplayActions(PlControl wrapper) { m_Wrapper = wrapper; }