Example #1
0
 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);
     }
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     sc_koa = transform.parent.GetComponent <SC_KoaSettingsOP>();
     txt    = this.GetComponent <TextMesh>();
 }
Example #3
0
    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);
    }