private void Awake() { if (damageable == null) { damageable = GetComponent <Damageable>(); } if (floatable == null) { floatable = GetComponent <Floatable>(); } }
private void Awake() { if (damageable == null) { damageable = GetComponent <Damageable>(); } if (floatable == null) { floatable = GetComponent <Floatable>(); } if (rb == null) { rb = GetComponent <Rigidbody2D>(); } }