protected override void OnCantMove <T> (T component) { if (component.CompareTag("Object")) { MovableObject hitObj = component as MovableObject; hitObj.AttemptPush(rBody.position); } }
protected override void OnCantMove <T> (T component) { MovableObject hitObj = component as MovableObject; //Need something to force player to freeze hitObj.AttemptPush(rBody.position); /* * if(hitObj.IsMoving()){ * StartCoroutine (Moving ()); * } * print ("player push done"); * //*/ }