void Start() { sp = new List <Sphere>(); tur = new GameObject(); ball = new Ball(); tur = NewObject("turet"); tur.transform.localScale = new Vector3(0.25f, 0.25f, 1.0f); turetTime = true; sp.Add(new Sphere(NewObject("sphere2"), sp.Count)); sp.Add(new Sphere(NewObject("sphere2"), sp.Count)); beh = new SpecialBehaviour(); }
public static T SetSpecialBehaviour <T>(this T entity, SpecialBehaviour value) where T : FeatureDefinitionActionAffinity { entity.SetField("specialBehaviour", value); return(entity); }