Пример #1
0
 void Start()
 {
     mods   = new Dictionary <string, float>();
     holder = GetComponentInParent <BuffableLoose>();
     holder.addBuff(this);
     birth = Time.time;
     AddMods();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     //gameInit();
     players     = new List <Player>();
     connections = new List <int>();
     BuffableLoose.baseline();
     //Debug.Log("enable");
     SceneManager.sceneLoaded += OnSceneLoaded;
 }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        rb      = GetComponent <Rigidbody>();
        col     = GetComponent <CapsuleCollider>();
        hp      = GetComponent <Health>();
        current = PState.Free;
        look    = LookState.Free;

        vis        = GetComponent <Visuals>();
        buffholder = GetComponent <BuffableLoose>();
    }
Пример #4
0
    // Use this for initialization
    public override void OnStartLocalPlayer()
    {
        //Debug.Log("start");
        //if (isLocalPlayer)
        //{
        inp = GetComponent <PhysicalInput>();
        CmdServerInit();
        BuffableLoose.baseline();

        //}

        SetReadyButton();
    }