You can't -
Second2
and
MonoBehavior
do not contain a variable called
watt
and the only class that does (
First1
) is not related to
Second2
Instead, derive
Second2
from
First1
rather than
MonoBeahviour
:
public class Second2 : First1 {
private List<ISecondListener> listeners = new List<ISecondListener>();
public int tott;
public void cek (){
tott = watt;
}