Example #1
0
 protected override void OnCantMove <T> (T component)
 {
     if (component.CompareTag("Object"))
     {
         MovableObject hitObj = component as MovableObject;
         hitObj.AttemptPush(rBody.position);
     }
 }
Example #2
0
    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");
         * //*/
    }