コード例 #1
0
    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();
    }
コード例 #2
0
 public static T SetSpecialBehaviour <T>(this T entity, SpecialBehaviour value)
     where T : FeatureDefinitionActionAffinity
 {
     entity.SetField("specialBehaviour", value);
     return(entity);
 }