Esempio n. 1
0
    void Awake()
    {
        cellOcc = CellOcc.NONE;

        animator           = GetComponent <Animator>();
        audioSource        = GetComponent <AudioSource>();
        audioSource.volume = PreferencesScript.Instance.GetSoundVolume();
    }
Esempio n. 2
0
 // Updates attributes in cell template
 public void UpdateAttributes(CellTemplate cellTemplate)
 {
     cellType = cellTemplate.cellOcc;
 }