-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
My kids tried to make a quiddich game. Here's a quick action that I coded up for it.
using UnityEngine;
using System.Collections;
public class TakeBall : Action {
public override bool ExecuteAction(GameObject other)
{
other.transform.SetParent(transform);
other.GetComponent<Rigidbody2D>().isKinematic = true;
return base.ExecuteAction(other);
}
}
Metadata
Metadata
Assignees
Labels
No labels