Ejemplo n.º 1
0
 public virtual void Init(IPatternable masterScript)
 {
     this.masterScript     = masterScript;
     this.master           = masterScript.transform;
     this.masterRigid      = master.GetComponent <Rigidbody>();
     this.inversedMoveTime = 1f / moveTime;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
    }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 7
0
 public void Init(IPatternable targetScript, float time)
 {
     base.Init(targetScript);
     wait = new WaitForSeconds(time);
 }
Ejemplo n.º 8
0
 public void Init(IPatternable targetScript, SFX_TYPE_BULLET e2)
 {
     base.Init(targetScript);
     this.e2 = e2;
     type    = 1;
 }
Ejemplo n.º 9
0
 public void Init(IPatternable targetScript, SFX_TYPE_EFFECT e)
 {
     base.Init(targetScript);
     this.e = e;
     type   = 0;
 }
Ejemplo n.º 10
0
 public virtual void Init(IPatternable targetScript, Transform Destination)
 {
     base.Init(targetScript);
     this.Destination = Destination;
 }
Ejemplo n.º 11
0
 public virtual void Init_LateMoving(IPatternable targetScript)
 {
     base.Init(targetScript);
     this.MoveType = 2;
 }
Ejemplo n.º 12
0
 public virtual void Init(IPatternable targetScript, Vector3 localDestination)
 {
     base.Init(targetScript);
     this.localDestination = localDestination;
     this.MoveType         = 1;
 }