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