Exemple #1
0
    void Awake()
    {
        cellOcc = CellOcc.NONE;

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