public void RpcSendStartInfo(GameObject Target, Vector3 vt3_Sensibility, int timeBeforeSpawn, string KoaID, int curLife, int maxLife, int type) { this.KoaID = KoaID; if (!isServer) { SC_KoaSettingsOP sc_KoaSettings = Target.transform.GetChild(1).GetComponent <SC_KoaSettingsOP>(); sc_KoaSettings.SetSensibility(vt3_Sensibility); sc_KoaSettings.SetTimeBeforeSpawn(timeBeforeSpawn); sc_KoaSettings.SetKoaID(KoaID); sc_KoaSettings.SetKoaLife(curLife); sc_KoaSettings.SetKoamaxLife(maxLife); sc_KoaSettings.SetKoaType(type); } }
// Start is called before the first frame update void Start() { sc_koa = transform.parent.GetComponent <SC_KoaSettingsOP>(); txt = this.GetComponent <TextMesh>(); }
public void RpcSendAnimationBool(GameObject Target, bool deploy, bool flight, bool bullet, bool laser, float speedFactor, bool chargeLaser) { SC_KoaSettingsOP sc_KoaSettings = Target.transform.GetChild(1).GetComponent <SC_KoaSettingsOP>(); sc_KoaSettings.SetBoolAnimation(deploy, flight, bullet, laser, speedFactor, chargeLaser); }