Пример #1
0
 public virtual void Init(IPatternable masterScript)
 {
     this.masterScript     = masterScript;
     this.master           = masterScript.transform;
     this.masterRigid      = master.GetComponent <Rigidbody>();
     this.inversedMoveTime = 1f / moveTime;
 }
Пример #2
0
 public void Init(IPatternable targetScript, Vector3 targetScale, float f, float d = 0f, float s = 0f)
 {
     base.Init(targetScript, targetScale);
     rotateSpeed = f;
     deadline    = d;
     speed       = s;
 }
Пример #3
0
    public static k514EnemyBehaviour CreatePattern <T>(IPatternable k) where T : k514EnemyBehaviour
    {
        GameObject tmp = new GameObject();
        T          t   = tmp.AddComponent <T>();

        tmp.name             = "Pattern";
        tmp.transform.parent = k.transform;
        return(t);
    }
Пример #4
0
 public void Init(IPatternable targetScript, Vector3 Destination0, Vector3 Destination1, Vector3 Destination2, Vector3 Destination3, float max_u = 1f)
 {
     base.Init(targetScript);
     Destinations         = new Vector3[4];
     this.Destinations[0] = Destination0;
     this.Destinations[1] = Destination1;
     this.Destinations[2] = Destination2;
     this.Destinations[3] = Destination3;
     this.max_u           = max_u;
 }
Пример #5
0
    // // inherit
    // protected IPatternable masterScript = null;
    // protected Transform master;
    // protected Rigidbody masterRigid;

    // protected float moveTime = 1f, Speed = 1f , inversedMoveTime;
    // protected int LifeSpanCnt = 100;
    // protected Vector3 localDestination;

    public override void Init(IPatternable targetScript)
    {
        base.Init(targetScript);
    }
Пример #6
0
    // // inherit
    // protected IPatternable masterScript = null;
    // protected Transform master;
    // protected Rigidbody masterRigid;

    // protected float moveTime = 1f, Speed = 1f , inversedMoveTime;
    // protected int LifeSpanCnt = 100;
    // protected Vector3 localDestination;

    public override void Init(IPatternable targetScript, Vector3 targetScale)
    {
        base.Init(targetScript, targetScale);
    }
Пример #7
0
 public void Init(IPatternable targetScript, float time)
 {
     base.Init(targetScript);
     wait = new WaitForSeconds(time);
 }
Пример #8
0
 public void Init(IPatternable targetScript, SFX_TYPE_BULLET e2)
 {
     base.Init(targetScript);
     this.e2 = e2;
     type    = 1;
 }
Пример #9
0
 public void Init(IPatternable targetScript, SFX_TYPE_EFFECT e)
 {
     base.Init(targetScript);
     this.e = e;
     type   = 0;
 }
Пример #10
0
 public virtual void Init(IPatternable targetScript, Transform Destination)
 {
     base.Init(targetScript);
     this.Destination = Destination;
 }
Пример #11
0
 public virtual void Init_LateMoving(IPatternable targetScript)
 {
     base.Init(targetScript);
     this.MoveType = 2;
 }
Пример #12
0
 public virtual void Init(IPatternable targetScript, Vector3 localDestination)
 {
     base.Init(targetScript);
     this.localDestination = localDestination;
     this.MoveType         = 1;
 }