Наследование: MonoBehaviour
Пример #1
0
 // Use this for initialization
 void Start()
 {
     stunTimer    = 0;
     stunDuration = 1.5f;
     speed        = 5f;
     jump         = 4000;
     grounded     = true;
     stunned      = false;
     playing      = true;
     //player = PLAYER.BLUE;
     anim          = transform.GetComponent <AnimationCharacter> ();
     loadingScreen = GameObject.FindGameObjectWithTag("LoadingScreen").
                     GetComponent <LoadingScreen>();
     destroyer = GameObject.FindGameObjectWithTag("Destroyer").
                 GetComponent <DestroyPlayer>();
     camer = GameObject.FindGameObjectWithTag("MainCamera").
             GetComponent <CameraMove>();
     winner = GameObject.FindGameObjectWithTag("Title").
              GetComponent <TextMesh>();
     dataLogic = GameObject.FindGameObjectWithTag("DataLogic").
                 GetComponent <DataLogic>();
 }
Пример #2
0
    // Start is called before the first frame update

    void Start()
    {
        player      = GameObject.FindGameObjectWithTag("Player");
        d           = GameObject.Find("Scripts").GetComponent <DestroyPlayer>();
        rollManager = GameObject.Find("HealthSlider").GetComponent <RollManager>();
    }
Пример #3
0
 private void Start()
 {
     Instance = this;
 }
Пример #4
0
 private void Start()
 {
     d = GameObject.Find("Scripts").GetComponent <DestroyPlayer>();
     warriorAnimator = GetComponent <Animator>();
 }
Пример #5
0
 public void Start()
 {
     instance = this;
 }