void Awake() { s_r = GetComponent <SpriteRenderer>(); tori = GetComponent <Animator>(); bulletSpawn = transform.Find("bulletSpawn"); bulletPrefab = Resources.Load("Prefabs/bulletPrefab") as GameObject; game_manager = SceneAloitus._singleton; rof = 1.5f; death_counter = 0; v_speed = 2; h_speed = 4; skaala = new Vector3(1, 1, 1); }
// Use this for initialization private void Awake() { if (_singleton == null) { _singleton = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } // musat musa.Play(); generoi_map(); }
// Use this for initialization void Start() { game_manager = SceneAloitus._singleton; }